<div class="main-content">
	<div class="breadcrumbs" id="breadcrumbs">
		<script type="text/javascript">
			try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
		</script>

		<ul class="breadcrumb">
			<li class="active">
				<i class="icon-home home-icon"></i>
				<a href="#">系统首页</a>
			</li>
			<li class="active">
				订单管理
			</li>
			<li class="active">
				订单列表
			</li>
		</ul><!-- .breadcrumb -->
	</div>

	<div class="page-content">
		<div class="row">
			<div class="page-header">
				<h1>订单列表</h1>
			</div>
            <div class="col-xs-12">
                <a href="javascript:void(0)" onclick="delSomeModal()" data-toggle="modal" class="btn btn-danger btn-sm"><i class="icon-trash"></i>删除</a>
	        </div>
	        <div class="col-md-12 col-sm-12 col-xs-12 form">
	        <form action="<?php echo base_url().'admin/order/query_complain'?>" method="get">
	        	<div class="row">
                	<div class="wh">
                	<label>订单编号：</label>
                    <input type="text" name="order_no" value="<?php if (isset($order_no)) echo $order_no;?>"/>
                    </div>   
                    <div class="wh">
                	   <label>处理状态：</label>
                        <select name="status">
                            <option value="-1" <?php if (isset($status)&&$status == -1)echo "selected";?>>全部</option>
							<option value="0" <?php if (isset($status)&&$status == 0)echo "selected";?>>未处理</option>
							<option value="1" <?php if (isset($status)&&$status == 1)echo "selected";?>>处理中</option>
							<option value="2" <?php if (isset($status)&&$status == 2)echo "selected";?>>已处理</option>
						</select>     
	               </div>
	               <div class=" col-xs-4 sell_btn">
    	        	<button class="btn btn-sm btn-info" type="submit"><i class="icon-search"></i>查询</button>
    	            <a href="<?php echo base_url().'admin/order/excel'?>" class="btn btn-sm btn-warning"><i class="icon-download"></i>导出</a>  
	               </div>
	        </div>
	        </form>

        	<div class="col-xs-12 margin_t margin_b">
				<div class="table-responsive  tab">
				<form action="<?php echo base_url()."admin/order/del_some_complain"?>" method="post" id="delForm">
					<table id="sample-table-1" class="table table-striped table-bordered table-hover">
						<thead>
							<tr>
								<th class="center" style="width: 3%;">
									<label>
										<input type="checkbox" class="ace" />
										<span class="lbl"></span>
									</label>
								</th>
								<th>订单号</th>
								<th>客户手机</th>
								<th>机主手机</th>
								<th>订单总额</th>
								<th>投诉内容</th>
								<th>处理状态</th>
								<th>操作</th>
							</tr>
						</thead>

						<tbody>
							<?php if (isset($result)&&count($result)>0){
                            	foreach ($result as $app){
                            	?>
							<tr>
								<td class="center">
                                	<p>
									<label>
										<input type="checkbox" class="ace" name="num[]" value="<?php echo $app->id;?>"/>
										<span class="lbl"></span>
									</label>
                                    </p>
								</td>
								<td><p><?php echo $app->order_no;?></p></td>
                                <td><p><?php echo $app->user_phone;?></p></td>
                                <td><p><?php echo $app->get_user_phone;?></p></td>
                                <td><p><?php echo $app->order_price.'+'.$app->order_tip;?></p></td>
                                <td><p><?php echo $app->content;?></p></td>
                                <td><p><?php echo $app->status;?></p></td>
                                <td><p></p></td>
    						</tr>
    						<?php }
                            }else{?>
                            <tr>
                            	<td colspan="8">无数据</td>
                            </tr>
                            <?php }?>
						</tbody>
					</table>
					</form>
				</div><!-- /.table-responsive -->
			</div>
        
        	<div class="col-sm-12">
            	<div class="modal-footer no-margin-top">
                	<div class="pull-left record">
						共<?php echo $count;?>条记录
                    </div>
            		<?php if (isset($page))echo $page;?>
            	</div>
            </div>
		</div><!-- /.row -->
	</div><!-- /.page-content -->
</div><!-- /.main-content -->

<script type="text/javascript">
// function delSomeModal(){
// 	if(checkSelect()){
//     	$('#delsomeModal').modal('show');
// 	}else{
// 		alert('请选择正确的记录进行删除');
// 	}
// }
// $("#delsomebtn").click(function(){
// 	$("#delForm").submit();
// });

</script>
	